package guardian

import "github.com/Unixeno/islands/pb"

func newErr(code uint32, err error) *pb.Error {
	return &pb.Error{
		Code:    code,
		Message: err.Error(),
	}
}
